ResponseBuilder

Constructors

this
this()
Undocumented in source.
this
this(ResponseHandler txn)
Undocumented in source.

Members

Functions

clear
void clear()
Undocumented in source. Be warned that the author may not have intended to support it.
connectionClose
ResponseBuilder connectionClose()
Undocumented in source. Be warned that the author may not have intended to support it.
header
ResponseBuilder header(string name, T value)

Set a header on the Response.

header
ResponseBuilder header(HttpHeaderCode code, T value)
Undocumented in source. Be warned that the author may not have intended to support it.
promise
ResponseBuilder promise(string url, string host)
Undocumented in source. Be warned that the author may not have intended to support it.
send
void send()
Undocumented in source. Be warned that the author may not have intended to support it.
sendWithEOM
void sendWithEOM()
Undocumented in source. Be warned that the author may not have intended to support it.
setBody
ResponseBuilder setBody(ubyte[] data)
Undocumented in source. Be warned that the author may not have intended to support it.
setResponseHandler
void setResponseHandler(ResponseHandler txn)
Undocumented in source. Be warned that the author may not have intended to support it.
status
ResponseBuilder status(ushort code, string message)
Undocumented in source. Be warned that the author may not have intended to support it.
status
int status()

Get the status code for the response.

withHeaders
ResponseBuilder withHeaders(string[string] headers)

Add an array of headers to the response.

Properties

bodys
ByteBuffer!Mallocator* bodys [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
dataHandler
ResponseHandler dataHandler [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
dataHandler
ResponseHandler dataHandler [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
headers
HttpMessage headers [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
httpMessage
HttpMessage httpMessage [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_body
ByteBuffer!Mallocator _body;
Undocumented in source.
_httpMessage
HttpMessage _httpMessage;
Undocumented in source.
_txn
ResponseHandler _txn;
Undocumented in source.

Meta